package com.ls.controller.booking.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;

/**
 * @ClassName BookingModel
 * @Description 可预定model
 * @Author pengyu
 * @Date 2024/7/25 17:14
 * @Version 1.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class BookingModel {
    /**预定日期*/
    @NotNull(message = "预定日期不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate bookingDay;
    /**选择场次 预定时段 1早餐，2午餐，3下午茶，4晚餐*/
    private Integer timeId;
    /**状态  null为全部，1所有已预定，2可预定，3已到店，4临近未到店，5超时未到店*/
    private Integer status;
    /**不需要传*/
    private Long companyId;
}
